<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<link href="/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/Public/css/amazeui.min.css" rel="stylesheet">
<link href="/Public/css/mycss.css" rel="stylesheet">
    <script src="/Public/js/jquery.js"></script>
    <script src="/Public/js/bootstrap.min.js"></script>
    <script src="/Public/js/amazeui.min.js"></script>
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
 <?php
 $nav= D("Nav")->GetNav(); ?>
 <header class="am-topbar am-topbar-inverse am-topbar-fixed-top">
  <div class="am-container">
    <h1 class="am-topbar-brand">
      <a href="#" class="am-text-ir">Amaze UI</a>
    </h1>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#doc-topbar-collapse-4'}"><span class="am-sr-only">导航切换</span> <span
        class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse-4">
      <ul class="am-nav am-nav-pills am-topbar-nav">
      <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($nav["src"]); ?>"><?php echo ($nav["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
  <li class="am-dropdown" data-am-dropdown>
         <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
           下拉 <span class="am-icon-caret-down"></span>
         </a>
         <ul class="am-dropdown-content">
           <li><a href="#">带我去月球</a></li>
           <li><a href="#">还是回地球</a></li>
           <li class="am-disabled"><a href="#">臣妾做不到</a></li>
         </ul>
       </li> 
      </ul>
    </div>
  </div>
</header> 


<div data-am-widget="slider" class="am-slider am-slider-a3" data-am-slider='{"directionNav":false}' >
  <ul class="am-slides" >
      <?php if(is_array($news)): $i = 0; $__LIST__ = $news;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li >
          <a href="/index.php?c=detail&id=<?php echo ($vo["news_id"]); ?>"><img src="<?php echo ($vo["thumb"]); ?>"></a>
         
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
  </ul>
</div>




  <div class="am-container am-panel am-panel-secondary" style="margin-top:2%;">
  <div class="am-panel-hd">
    <h3 class="am-panel-title">新闻中心</h3>
  </div>
  <ul class="am-list am-list-static">
  <?php if(is_array($news)): $i = 0; $__LIST__ = $news;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$main): $mod = ($i % 2 );++$i;?><li ><a href="/index.php?c=detail&id=<?php echo ($main["news_id"]); ?>"><?php echo ($main["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>  
  </ul>
</div>
 
  <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2
  am-avg-md-4 am-avg-lg-4 am-gallery-imgbordered" data-am-gallery="{  }" >
  <?php if(is_array($products)): $i = 0; $__LIST__ = $products;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
        <div class="am-gallery-item">
            <a href="" class="">
              <img src="<?php echo ($vo["thumb"]); ?>"  alt="<?php echo ($vo["products_name"]); ?>"/>
            </a>
        </div>
      </li><?php endforeach; endif; else: echo "" ;endif; ?> 
  </ul>

<footer>
<p style="text-align: center; margin-top:2%;">Copyright 2012, cn corporation, All Rights Reserved by zt</p>
</footer>
</body>
</html>